package com.yihu.dataService.hessian.mongodb.interfaceService;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.yihu.beans.ResultVO;
import com.yihu.beans.user.Group;
import com.yihu.beans.user.GroupQuery;
import com.yihu.beans.user.PermitQuery;
import com.yihu.beans.user.PermitResourceRef;
import com.yihu.beans.user.Priviledge;
import com.yihu.beans.user.UserGroupRef;
@Repository(value="UserGroupDao")
public interface PriviledgeHService {

	public ResultVO addPermit(Priviledge permit);
	public ResultVO deletePermit(long id);
	public ResultVO updatePermit(Priviledge permit);
	public Priviledge getPermit(long id);
	public String getPermitByPage(PermitQuery query);
	public Priviledge getRolesByPermitId(PermitQuery query);
	public ResultVO addResourceToPriviledge(PermitResourceRef prRef);
	public ResultVO deleteResourceFromPriviledge(PermitResourceRef prRef);
	public Object getResourcesByPermit(PermitQuery query);
	public ResultVO assignResources(PermitResourceRef prRef);
	public Object getPermitsByParentId(PermitQuery query);
	public Object getParentPermits(PermitQuery query);
	public Object getChildrensByParentId(long id);
	
}
